package light.mvc.service.workflow;

import java.io.InputStream;
import java.util.Collection;
import java.util.List;
import java.util.zip.ZipInputStream;

import org.jbpm.api.ProcessDefinition;
import org.jbpm.api.model.ActivityCoordinates;

import light.mvc.model.books.Tmaterial;
import light.mvc.pageModel.base.PageFilter;
import light.mvc.pageModel.base.SessionInfo;
import light.mvc.pageModel.base.Tree;
import light.mvc.pageModel.books.Material;
import light.mvc.pageModel.workflow.FormTemplate;
import light.mvc.pageModel.workflow.MyActivityCoordinates;
import light.mvc.pageModel.workflow.ProcessDefinitionModel;

public interface ProcessDefinitionServiceI {

	public Long count(FormTemplate formTemplate, PageFilter ph);

	public void deployZip(ZipInputStream zipInputStream);

	public InputStream getProcessImageResourceAsStream(String id);
	
	public ProcessDefinition getProcessDefinition(String pdId);
	
	public List<ProcessDefinitionModel> findAllLatestVersions();

	public void deleteByKey(String key);

	public String getProcessDefinitionId(String proccessInstanceId);

	public List<MyActivityCoordinates> getActivityCoordinates(String piId);

}
